<?php
namespace app\common\model;

use think\Model;

class Bis extends BaseModel
{
   public function getBisByStatus($status=0){
       $data = [
         'status' => $status,
       ];
       $order = [
         'id' => 'desc',
       ];
       $result = $this->where($data)->order($order)->paginate();
       return $result;
   }

   public function getDetailById($id){
       $data = [
         'id' => $id,
         'status' => 0,
       ];
       $result = $this->where($data)->find();
       return $result;
   }

    public  function getDetailByIdWithout($id){
        $data = [
            'id' => $id,
        ];
        $result = $this->where($data)->find();
        return $result;
    }




}